<template>
	<view class="content">
		<u--image :showLoading="true" :src="src" width="750rpx" height="600rpx" @click="click"></u--image>
		<u-gap height="20rpx" bgColor="#f5f5f5"></u-gap>
		<view class="ui_lable">
			<view class="ui_tip"></view>
			<view class="ui_text">生产企业简介</view>
		</view>
		<view class="ui_info">
			<view class="ui_content">
				<u-parse :content="info.intro" :selectable="true"></u-parse>
			</view>
			<view class="ui_tag">
				<view class="tag" @click="showImg">企业资质</view>
				<view class="tag" @click="nav_go('/pages/index/map')">查看地图</view>
				<view class="tag" @click="nav_go('/pages/index/sale')">购买渠道</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: null,
				src: 'https://img2.baidu.com/it/u=2112311137,2912593221&fm=253&fmt=auto&app=138&f=JPEG?w=750&h=500'
			}
		},
		onShow() {
			this.info = uni.getStorageSync('enterprise')
		},
		methods: {
			nav_go(url) {
				console.log(url)
				this.$util.navTo(url)
			},
			showImg(){
				let arr = ['http://zyht.ncp3600.com/upload/8f0a3093-59a0-4697-9b37-6c95f07d7fc8.jpg']
				uni.previewImage({
					urls:arr,
					current:0
				})
			}
		}
	}
</script>

<style lang="less">
	.content {
		width: 750rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		.ui_lable{
			width: 690rpx;
			height: 70rpx;
			display: flex;
			flex-wrap: wrap;
			align-items: center;
			margin-top: 20rpx;
			font-size: 30rpx;
			color: #333333;
			.ui_tip{
				width: 10rpx;
				height: 30rpx;
				border-radius: 5rpx;
				background-color: #333333;
				margin-right: 20rpx;
			}
			.ui_text{
				font-weight: bold;
			}
		}
		.ui_info{
			width: 690rpx;
			background-color: #fff;
			border-radius: 20rpx;
			font-size: 26rpx;
			.ui_content{
				width: 630rpx;
				margin: 30rpx;
				
			}
			.ui_tag{
				width: 630rpx;
				margin-left: 30rpx;
				margin-bottom: 50rpx;
				display: flex;
				.tag{
					padding: 5rpx 10rpx;
					line-height: 40rpx;
					background-color: #3baf33;
					font-size: 24rpx;
					color: #fff;
					margin-right: 10rpx;
					border-radius: 10rpx;
				}
			}
		}
	}
</style>
